package com.sl.au.repository;

import org.neo4j.cypher.internal.compiler.v2_2.perty.recipe.Pretty.page;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Slice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.Grading;
import com.sl.au.entity.Template;

import java.util.List;

public interface TemplateRepository extends JpaRepository<Template, String> {
	
	@Query(" select a from Template a where a.name like %?1% or a.describe like %?1%  ")
	Page<Template> getTemplateByKey(String key, Pageable pageable);
	
}
